//Tracker.vn  
//CopyRight By Tracker Group
 using System;
 using System.Text;

namespace tracker.Models.DTO
{
   public class EDeviceType
   {
	 public EDeviceType()
	 {
	 }
	 private int _DeviceTypeID ;
     private string _DeviceTypeName;
     private int _Status;
	 private int _ParentID ;
	 private string _CreateBy ;
	 private string _ModifyBy ;
	 private DateTime _CreateDate ;
	 private DateTime _ModifyDate ;
     private string _GroupDeviceTypeKey;

     public string GroupDeviceTypeKey
     {
         get { return _GroupDeviceTypeKey; }
         set { _GroupDeviceTypeKey = value; }
     }

	 public int DeviceTypeID
	 {
	    get { return _DeviceTypeID ; }
	    set { _DeviceTypeID = value ; }
	 }
     public string DeviceTypeName
	 {
         get { return _DeviceTypeName; }
         set { _DeviceTypeName = value; }
	 }
	 public int Status
	 {
	    get { return _Status ; }
	    set { _Status = value ; }
	 }
	 public int ParentID
	 {
	    get { return _ParentID ; }
	    set { _ParentID = value ; }
	 }
	 public string CreateBy
	 {
	    get { return _CreateBy ; }
	    set { _CreateBy = value ; }
	 }
	 public string ModifyBy
	 {
	    get { return _ModifyBy ; }
	    set { _ModifyBy = value ; }
	 }
	 public DateTime CreateDate
	 {
	    get { return _CreateDate ; }
	    set { _CreateDate = value ; }
	 }
	 public DateTime ModifyDate
	 {
	    get { return _ModifyDate ; }
	    set { _ModifyDate = value ; }
	 }

     public static EDeviceType create(System.Data.DataRow idr)
     {
         EDeviceType ODeviceType = new EDeviceType();
         if (idr["DeviceTypeID"] != DBNull.Value)
             ODeviceType.DeviceTypeID = (int)idr["DeviceTypeID"];
         if (idr["DeviceTypeName"] != DBNull.Value)
             ODeviceType.DeviceTypeName = (string)idr["DeviceTypeName"];
         if (idr["GroupDeviceTypeKey"] != DBNull.Value)
             ODeviceType.GroupDeviceTypeKey = (string)idr["GroupDeviceTypeKey"];
         if (idr["Status"] != DBNull.Value)
             ODeviceType.Status = (int)idr["Status"];
         if (idr["ParentID"] != DBNull.Value)
             ODeviceType.ParentID = (int)idr["ParentID"];
         if (idr["CreateBy"] != DBNull.Value)
             ODeviceType.CreateBy = (string)idr["CreateBy"];
         if (idr["ModifyBy"] != DBNull.Value)
             ODeviceType.ModifyBy = (string)idr["ModifyBy"];
         if (idr["CreateDate"] != DBNull.Value)
             ODeviceType.CreateDate = (DateTime)idr["CreateDate"];
         if (idr["ModifyDate"] != DBNull.Value)
             ODeviceType.ModifyDate = (DateTime)idr["ModifyDate"];
         return ODeviceType;
     }
   }
 }
